#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>

int main()
{
	const char* sep = ".";
	char a[] = "abce.dee.fge";
	char cp[30] = { 0 };
	strcpy(cp, a);

	char* ret=NULL;
	for (ret = strtok(cp, sep); ret != NULL; ret=strtok(NULL, sep))
	{
		printf("%s\n", ret);
	}
	return 0;
}